package cn.ilikes.tools.hbase.jpa.clients.datasource;

import cn.ilikes.tools.hbase.jpa.metadatas.sub.configs.Datastorefactory.DataStore;

public abstract class AbDataSource extends DataSourceBaseImple implements DataSource {

	private DataWrite dataWrite;

	private DataRead dataRead;

	public AbDataSource(DataStore dataStore) {
		init();
	}

	private void init() {
		dataWrite = createDataWrite();

		dataRead = createDataRead();
	}

	protected abstract DataWrite createDataWrite();

	protected abstract DataRead createDataRead();

	protected DataWrite getDataWrite() {
		return dataWrite;
	}

	protected DataRead getDataRead() {
		return dataRead;
	}

}